package cn.sunxyz.create.factorymethod;

/**
 * Created by yangrd on 2017/5/12.
 */
public class DataLoggerFactory implements LoggerFactory {
    @Override
    public Logger createLogger() {
        //连接数据库，代码省略
        System.out.println("connection :=> mysql:127.0.0.1:3306 ");
        //创建数据库日志记录器对象
        return new DataLogger();
        //初始化数据库日志记录器，代码省略
    }
}
